#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<assert.h>
int My_strcmp(const char* arr1, const char* arr2)
{
	assert(arr1 && arr2);
	while (*arr1 == *arr2)
	{
		if (*arr1 == '\0')
			return 0;
		arr1++;
		arr2++;
	}
	return *arr1 - *arr2;
}
int main()
{
	char arr1[] = "lisi";
	char arr2[] = "lisan";
	printf("%d\n", My_strcmp(arr1, arr2));
	return 0;
}